package ModelLayer;

/**
 * The class Copy creates the information about a copy.
 * 
 * @author Gruppe A 
 * @version 1.0
 */
public class Copy
{
    // instance variables for id, name, adress, postnr, city, phoneNumber
    private long serialnr;
    private String aquiringDate;
    private double cost;
    
    /**
     * Constructor for objects of class Copy
     * @param long serialnr
     * @param String aquiringDate
     * @param double cost
     */
    public Copy(long serialnr, String aquiringDate, double cost)
    {
        // initialise instance variables
       this.serialnr = serialnr;
       this.aquiringDate = aquiringDate;
       this.cost = cost;
       
    }
    
    

    /**
     * An accessor method showing you the cost of the object.
     * @return double cost
     */
    public double getCost()
    {
        return cost;
    }

    /**
     * An accessor method showing you the aquiringDate of the object
     * @return String aquiringDate
     */
    public String getAquiringDate()
    {
        return aquiringDate;
    }

    /**
     * An accessor method showing you the serial number of the object
     * @return long serialnr
     */
    public long getSerialnr()
    {
        return serialnr;
    }
    
    

    /**
     * A mutator method for setting a specific cost.
     * @param double cost
     */
    public void setCost(double cost)
    {
        this.cost = cost;
    }

    /**
     * A mutator method for setting a specific aquiringDate
     * @param String aquiringDate
     */
    public void setAquiringDate(String aquiringDate)
    {
        this.aquiringDate = aquiringDate;
    }

    /**
     * A mutator method for setting a serialnr
     * @param long serialnr
     */
    public void setSerialnr(long serialnr)
    {
        this.serialnr = serialnr;
    }
}